<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>简单计算器</title>
    <link rel="stylesheet" href="style.css">
</head>
<body>
    <div class="calculator">
        <div class="expression"></div>
        <div class="display">0</div>
        <div class="buttons">
            <button class="func" data-action="clear">C</button>
            <button class="func" data-action="backspace">⌫</button>
            <button data-operator="%">%</button>
            <button data-operator="÷">÷</button>
            
            <button data-number="7">7</button>
            <button data-number="8">8</button>
            <button data-number="9">9</button>
            <button data-operator="×">×</button>
            
            <button data-number="4">4</button>
            <button data-number="5">5</button>
            <button data-number="6">6</button>
            <button data-operator="-">-</button>
            
            <button data-number="1">1</button>
            <button data-number="2">2</button>
            <button data-number="3">3</button>
            <button data-operator="+">+</button>
            
            <button data-number="0" class="span-2">0</button>
            <button data-number=".">.</button>
            <button data-action="calculate">=</button>
        </div>
    </div>
    <script src="app.js"></script>
</body>
</html>